package com.hafu.service;

import com.hafu.dao.GysInfoDao;
import com.hafu.model.GysInfo;
import java.util.ArrayList;

public class GysInfoService {
    private GysInfoDao gysinfoDao = new GysInfoDao();

    public Boolean addGysinfo(GysInfo gys) {
        return gysinfoDao.addGysInfo(gys);
    }

    public Boolean deleteGysInfo(int id) {
        return gysinfoDao.deleteGysInfo(id);
    }

    public ArrayList<GysInfo> getGysInfoByName(GysInfo gys) {
        return gysinfoDao.getGysInfoByName(gys);
    }

    public Boolean updateGysInfo(GysInfo gys) {
        return gysinfoDao.updateGysInfo(gys);
    }
}